<?php
return array(
	'attributeLabels' => array(
		'create_time' => '评论时间',
		'nickname' => '用户',
	),
	
	'rules' => array(
		array('rate,content','required')
	),
	
	'relations' => array(
		'parent' => array(CActiveRecord::BELONGS_TO, 'GoodsComment', 'parent_id'),
		'member' => array(ActiveRecord::BELONGS_TO, 'MemberAccount', 'uid'),
	),
	
	'behaviors' => array(
		'autoAttr' => array(
			'class' => 'coms.behaviors.goods.CommentAutoAttr'
		),
		'statistics' => array(
			'class' => 'coms.behaviors.content.GoodsCommentStatistics'
		),
		'autoCreate' => array(
			'class' => 'lib.behaviors.auto.CCreateTime',
		),
		'autoUpdate' => array(
			'class' => 'lib.behaviors.auto.CUpdateTime',
		),
		'fornt' => array(
			'class' => 'coms.behaviors.FrontBehavior',
			'attributes' => array(
				'title' => 'content',
			),
		),
	),
	
	'_import' => array(
		array('*', 'models.ActiveRecord//*'),
	),
);